package cn.fintecher.gis.entity;

import cn.fintecher.gis.enums.Rapporttype;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "layer_publish")
@Data
@ApiModel(value = "layer_publish", description = "图层统计发布")
public class LayerPublish extends BaseEntity {

    @ApiModelProperty(notes = "报表类型")
    @Enumerated(EnumType.STRING)
    private Rapporttype reportType;

    @ApiModelProperty(notes = "图层code")
    @ElementCollection
    private List<String> layerCode;

    @ApiModelProperty(notes = "年份")
    private String year;
}
